package day03.note;

import java.util.Random;
import java.util.Scanner;

public class txt3 {
    public static void main(String[] args) {

        Random r = new Random();
        while (50 < 80) {
            int nnm = r.nextInt(20);
            int nnm1 = r.nextInt(30);
            System.out.println(nnm + "*" + nnm1 + "=");

            Scanner sc = new Scanner(System.in);
            int answer = sc.nextInt();


            if (answer == nnm * nnm1) {
                System.out.println("正确");
            } else {
                System.out.println("错误");
            }
        }
    }
}
